const path = require('path');
function resolve (dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  lintOnSave: process.env.NODE_ENV !== 'production',
  productionSourceMap: false,
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@assets',resolve('src/assets'))
      .set('@components',resolve('src/components'))
      .set('@views',resolve('src/views'))
      .set('@static',resolve('src/static'))
  }
}
